<template>
  <h1>Detail...</h1>
</template>

<script lang="ts">
export default {
  name: "Detail",
};
</script>

<script lang="ts" setup>
import { useRoute } from "vue-router";

const route = useRoute();
// 获取params参数
console.log(route.params.id);
</script>

<style scoped></style>
